import request from "@/utils/request";

export function pageUser(params){
    return request({
        url: '/api/rabc/user/page',
        method: 'get',
        params
    })
}
export function listUser(){
    return request({
        url: '/api/rabc/user/list',
        method: 'get'
    })
}
export function addUser(data) {
    return request({
        url: '/api/rabc/user/add',
        method: 'post',
        data
    })
}
export function updateUser(data) {
    return request({
        url: '/api/rabc/user/update',
        method: 'post',
        data
    })
}
export function deleteUser(id) {
    return request({
        url: '/api/rabc/user/delete',
        method: 'post',
        data:{
            id
        }
    })
}